projects
/
ostree.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e36c48f
)
ostbuild: Optionally log start of commands we want output from too
author
Colin Walters
<walters@verbum.org>
Wed, 11 Jan 2012 19:33:48 +0000
(14:33 -0500)
committer
Colin Walters
<walters@verbum.org>
Wed, 11 Jan 2012 19:33:48 +0000
(14:33 -0500)
compose is slow, but we also want output.
src/ostbuild/pyostbuild/subprocess_helpers.py
patch
|
blob
|
history
diff --git
a/src/ostbuild/pyostbuild/subprocess_helpers.py
b/src/ostbuild/pyostbuild/subprocess_helpers.py
index efa06c2efebe093d6a7d56b8e1cb772a9d72c598..de85f300fd6604c411febc1d9cd4d01c28173119 100755
(executable)
--- a/
src/ostbuild/pyostbuild/subprocess_helpers.py
+++ b/
src/ostbuild/pyostbuild/subprocess_helpers.py
@@
-41,7
+41,9
@@
def _get_env_for_cwd(cwd=None, env=None):
return env_copy
def run_sync_get_output(args, cwd=None, env=None, stderr=None, none_on_error=False,
- log_success=False):
+ log_success=False, log_initiation=False):
+ if log_initiation:
+ log("running: %s" % (subprocess.list2cmdline(args),))
env_copy = _get_env_for_cwd(cwd, env)
f = open('/dev/null', 'r')
if stderr is None: